// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "DataIndicatorMeshBuilder.generated.h"

class UDynamicMesh;

UCLASS(Blueprintable)
class SIMUVISUALIZER_API UDataIndicatorMeshBuilder : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
	
public:
	UDataIndicatorMeshBuilder(){}

	UFUNCTION(BlueprintCallable, Category = "SimuVisualizer|DataIndicatorMeshBuilder")
	static void BuildDataIndicatorMesh(
		UDynamicMesh* targetMesh, 
		const FVector& startPos,
		const FVector& secPos,
		const FVector& endPos,
		const FVector& startNormal,
		const FVector& endNormal,
		const float width,
		const float UTexcoordStart,
		FVector& nextstartPos,
		float& nextUTexcoordStart,
		const bool& isLastMesh);
};
